#! /bin/sh

# execute this script from the top-level directory
HOSTNAME=`hostname`
PATH=$HOME/bin:$PATH; export PATH
FFLAGS='-O2 -fomit-frame-pointer -mcpu=750'
CXXFLAGS='-O2 -fomit-frame-pointer -mcpu=750'
CPPFLAGS="-I$HOME/include" 
LDFLAGS="-L$HOME/lib" 
MAKE=make

export CC F77 F90 LDFLAGS CFLAGS FFLAGS CPPFLAGS CXXFLAGS MAKE

rm -rf $HOSTNAME
mkdir $HOSTNAME

( 
  cd $HOSTNAME
  ../configure --disable-single
  make -k; make -k; make benchmark; make clean
  ../configure --enable-single
  make -k; make -k; make benchmark; make clean
  make collect
)
